import 'package:flutter/material.dart';
import 'package:top_foundation/top_foundation.dart';
import 'index.dart';

class CalendarPage extends GetView<CalendarController> {
  const CalendarPage({Key? key}) : super(key: key);

  // 主视图
  Widget _buildView() {
    return CalendarView(
      result: (start, end) {},
    );
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<CalendarController>(
      builder: (_) {
        return Scaffold(
          appBar: AppBar(title: const Text("calendar")),
          body: SafeArea(
            child: _buildView(),
          ),
        );
      },
    );
  }
}
